package cn.stylefeng.guns.modular.business.service;

import cn.stylefeng.guns.modular.business.entity.MessageNotice;
import cn.stylefeng.guns.modular.business.model.result.MessageNumResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface MessageNoticeService extends IService<MessageNotice> {

    List<MessageNotice> listByUserId(Page page, String condition, String type, Long userId);

    List<MessageNotice> list(Page page, String condition, String type);

    /**
     * 新增消息
     *
     * @param title
     * @param content
     * @param type
     * @return
     */
    boolean add(String title, String content, String type, Long userId);



}
